<?php $this->calculatePageNumber(); ?>
<div class="page">
<?php if($this->getPageCount() > 1): ?>
<?php if(!$this->isFirstPage()): ?>
    <span>
        <a href="<?php echo $this->getPageIndexUrl($this->getPageIndex() - 1) ?>">上一页</a>
    </span>
<?php endif; ?>
<?php for($i = $this->getStartPage(); $i <= $this->getEndPage(); $i++):?>
    <?php if($this->isCurrentIndex($i)): ?>
        <span class="off"><?php echo $i?></span>
    <?php else: ?>
    <span>
        <a href="<?php echo $this->getPageIndexUrl($i) ?>">
            <?php echo $this->getPageIndexText($i); ?>
        </a>
    </span>            
    <?php endif ?>
<?php endfor; ?>
<?php if(!$this->isLastPage()): ?>
    <span>
        <a href="<?php echo $this->getPageIndexUrl($this->getPageIndex() + 1) ?>">下一页</a>
    </span>
<?php endif; ?>
<span class="off">共<?php echo $this->getPageCount() ?>页 共<?php echo $this->getRecordCount() ?>条</span>
<?php endif; //if($this->pageCount() > 1)?>
    <input type="hidden" name="pagesize" value="<?php echo $this->getPageSize() ?>"/>
</div>